package com.eian.boot.module.system.associations.role.dept.event;

import lombok.Getter;
import org.springframework.context.ApplicationEvent;

import java.util.List;

/**
 * 角色数据权限变更事件
 * 当角色的数据权限范围发生变化时触发
 *
 * @author alex.meng
 * @since 1.0.0
 */
@Getter
public class RoleDataScopeChangedEvent extends ApplicationEvent {

    private final Long roleId;
    private final List<Long> deptIds;

    public RoleDataScopeChangedEvent(Object source, Long roleId, List<Long> deptIds) {
        super(source);
        this.roleId = roleId;
        this.deptIds = deptIds;
    }
}

